package com.baseandroid.config;

import com.baseandroid.retrofit.json.Data;
import com.qianbao.qianbaobusiness.json.BossRequestBody;

import java.util.HashMap;
import java.util.Map;

import io.reactivex.Observable;
import okhttp3.MultipartBody;
import okhttp3.RequestBody;
import okhttp3.ResponseBody;
import retrofit2.http.Body;
import retrofit2.http.Multipart;
import retrofit2.http.POST;
import retrofit2.http.Part;
import retrofit2.http.PartMap;

public interface BossApi {

    @Multipart
    @POST("file/upload.do")
    Observable<ResponseBody> uploadFileWithPartMap(@PartMap() Map<String, RequestBody> partMap, @Part MultipartBody.Part file);

    /**
     * 根据商户号查询待结算账单
     */
    @POST("boss/v1/finance/queryDaysUnCheck")
    Observable<Data<String>> queryDaysUnCheck(@Body HashMap<String, String> hashMap);


    /**
     * 查询历史账单
     */
    @POST("boss/v1/finance/queryDaysCheckedPage")
    Observable<Data<String>> queryDaysCheckedPage(@Body BossRequestBody paraMap);

    /**
     *查询结算汇总金额(北京)
     * @param stringStringHashMap
     * @return
     */
    @POST("boss/v1/finance/queryColtCheckedPage")
    Observable<Data<String>> queryColtCheckedPage(@Body HashMap<String, String> stringStringHashMap);

    @POST("boss/v1/finance/queryDayChecking")
    Observable<Data<String>> getQueryDayChecking(@Body HashMap<String, String> stringStringHashMap);

    @POST("boss/v1/finance/querysettDayChecking")
    Observable<Data<String>> getSettleDetail(@Body HashMap<String, String> stringStringHashMap);


    @POST("boss/v1/finance/queryDayChecking")
    Observable<Data<String>> getBillDetail(@Body HashMap<String, String> stringStringHashMap);

    @POST("boss/v1/finance/queryTradeDetailPage")
    Observable<Data<String>> getQueryTradeDetailPage(@Body HashMap<String, String> stringStringHashMap);

    @POST("boss/v1/finance/queryTradeDetailById")
    Observable<Data<String>> getQueryTradeDetail(@Body HashMap<String, String> stringStringHashMap);
    
//    @POST("boss/v1/finance/queryTradeDetailById")
//    Observable<Data<String>> getQueryTradeDetail(@Body HashMap<String, String> stringStringHashMap);
}
